<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>is</title>
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
</head>
<body>
    <div id="app">
        <table style="border: 1px solid red;">
            <tr 
                v-for="post in posts"
                v-bind:key="post.id"
                v-bind:post="post"
                is="blog-post-row"
            ></tr>
        </table>
    </div>
    <script>
        Vue.component('blog-post-row', {
            props: ['post'],
            template: `
                <tr>
                    <td>{{post.id}}</td>
                    <td>{{post.title}}</td>
                    <td>{{post.content}}</td>
                </tr>
            `
        });
        var app = new Vue({
            el: '#app',
            data: {
                postFontSize: 1,
                posts: [
                    { id: 1, title: '111', content: '1111'},
                    { id: 2, title: '222', content: '22'},
                    { id: 3, title: '333', content: '3'}
                ]
            }
        });
    </script>
</body>
</html>
